lst = [2,3,1,-11,-22,189,2222,-1111]
lst.sort()
print(lst)

lst2 = [2,3,1,-11,-22,189,2222,-1111]
lst2.sort(reverse=True)
print(lst2)

list5 = ["天才","小黄","张无忌","村长","张三丰"]

#删除 list5里面的姓张的元素
tmp = []
for i in range (len(list5)):
    if list5[i].startswith("张"):
        tmp.append(list5[i])

for item in tmp:
    list5.remove(item)

print(list5)
